package com.uzai.console.web.stationcourse;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.uzai.console.annotation.SystemLogType;
import com.uzai.console.dto.stationcourse.ShortLinkJumpIdDto;
import com.uzai.console.dto.sys.shortlink.ShortLinkDto;
import com.uzai.console.entity.StationCourse;
import com.uzai.console.enums.OperationTypeEnum;
import com.uzai.console.enums.SystemModelEnum;
import com.uzai.console.service.stationcourse.StationCourseService;
import com.uzai.console.service.sys.ShortLinkService;
import com.uzai.console.vo.stationcource.StationCourseVo;
import com.uzai.console.vo.sys.shortlink.ShortLinkVo;
import com.uzai.console.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuqi
 * @date 2021年09月11日 20:15
 */
@Api(value = "站内教程",tags = "系统设置")
@ApiSort(30)
@RestController
public class StationCourseController extends BaseController {

    @Autowired
    private StationCourseService stationCourseService;

    @ApiOperation(value = "根据跳转id查询站内教程", notes = "根据跳转id查询站内教程", response = StationCourseVo.class)
    @ApiOperationSupport(order = 1)
    @PostMapping("/stationcourse/findStationCourseInfo")
    public Object findStationCourseInfo(@RequestBody ShortLinkJumpIdDto shortLinkJumpIdDto){
        return stationCourseService.findStationCourseByJumpId(shortLinkJumpIdDto);
    }

}
